<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>三元运算</title>
</head>
<body>
    <script>
        function Fever(temp) {
            return temp > 97 ? 'Visit Doctor!'
                : temp < 97 ? 'Go Out and Play!!'
                    : temp === 97 ? 'Take Some Rest!': 'Go Out and Play!';;
        }
        Fever();
        console.log('%c   Fever(97); : ','color: MidnightBlue; background: Aquamarine; font-size: 20px;', Fever(97) );
        console.log('%c   Fever(100); : ','color: MidnightBlue; background: Aquamarine; font-size: 20px;', Fever(100) );
        // 输出
        // Fever(97): "Take Some Rest!"
        // Fever(100): "Visit Doctor!"

    </script>
</body>
</html>